package api

import (
	"github.com/gin-gonic/gin"
	"videozg3/client/handler"
	"videozg3/common/pkg"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/send/sms", handler.SendSms)
		user.POST("/login", handler.UserLogin)
		user.Use(pkg.JWTAuth("2211a"))
		user.POST("/video/list", handler.VideoList)
		user.POST("/center", handler.UserCenter)
		user.POST("/add/video", handler.AddVideo)
	}
}
